su - oracle<<EOF

lsnrctl stop

export ORACLE_SID=orcldb
sqlplus sys/ora as sysdba 

shutdown immediate 

exit 

EOF
